package com.zhou.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhou.common.utils.PageUtils;
import com.zhou.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.zhou.gulimall.product.entity.AttrEntity;
import com.zhou.gulimall.product.vo.AttrRespVo;
import com.zhou.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Zhouheng
 * @email 87692651@qq.com
 * @date 2022-07-07 13:36:27
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAll(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getdetailById(Long attrId);

    PageUtils querySalePage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void getdetailRelation(AttrAttrgroupRelationEntity[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrGroupId);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

